import greenfoot.*;  

/**
 * Box actor, the smallest type of sandbag, disappears fast
 * 
 * @author Jasper Jans
 */
public class Box extends Sandbag
{
    public Box()
    {
        super.sandFilling = 1500;
        super.caughtImageFile = "sandbag-box-small.png";
        super.caughtImageFileBlink = "sandbag-box-small_blink.png";        
        super.dropSound = "sandbags-smallbag.mp3";
    }
    public void act() 
    {
       super.act();
    }    
    
    public void stopDropping()
    {
        GreenfootImage caughtImage = new GreenfootImage(caughtImageFile);
        setImage(caughtImage);
        super.stopDropping();
    }
    
    /*
     * Add 10 points
     */
    protected void addScore()
    {
        ((MiniGame)getWorld()).addScore(10);
    }  
}
